package com.my.service.impl;

import com.my.mapper.UserMapper;
import com.my.service.UserService;
import com.my.util.MyBatisUtil;
import com.my.vo.UserVo;

import java.util.List;

public class UserServiceimpl implements UserService {

    UserMapper userMapper = MyBatisUtil.openSession().getMapper(UserMapper.class);

    public List<UserVo> getAllUser(){

        return userMapper.getAllUser();
    }
    public UserVo getUserById(Integer id){
        return userMapper.getUserById(id);
    }
}
